#!/bin/bash

#################################
#测试脚本
#################################

set -x

function check()
{
    soft_version=$(rpm -qa | grep )
    if [[ $soft_version =~ "MyGUI-3.4.2" ]];then
        echo "RETURN SUCCESS"
    else
        echo "RETURN FAILED"
    fi
}

function main()
{
    ret=$(check)
    if [[ $ret == *'RETURN SUCCESS' ]];then
        echo "test scripts success"
    else
        echo "test scripts failed"
    fi
}
main

